home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / virus / scni227e.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-11-06  |  8KB  |  271 lines

  1. rem This batch file does an errorlevel check for VirusScan.  It will
  2. rem not install the product unless all checks are passed.  If an
  3. rem error is encounterred during the scan, it will be reported.
  4.  
  5. cls
  6. @echo off
  7. echo.
  8. echo Now SCANNING your memory and your local drives before INSTALLING,
  9. echo please wait...
  10. echo.
  11.  
  12. SCAN /ADL /NOBREAK
  13.  
  14. if errorlevel 100 goto error100
  15. if errorlevel 19 goto error19
  16. if errorlevel 18 goto error18
  17. if errorlevel 17 goto error17
  18. if errorlevel 16 goto error16
  19. if errorlevel 15 goto error15
  20. if errorlevel 14 goto error14
  21. if errorlevel 13 goto error13
  22. if errorlevel 12 goto error12
  23. if errorlevel 11 goto error11
  24. if errorlevel 10 goto error10
  25. if errorlevel 9 goto error9
  26. if errorlevel 8 goto error8
  27. if errorlevel 7 goto error7
  28. if errorlevel 6 goto error6
  29. if errorlevel 5 goto error5
  30. if errorlevel 4 goto error4
  31. if errorlevel 3 goto error3
  32. if errorlevel 2 goto error2
  33. if errorlevel 1 goto error1
  34. if errorlevel 0 goto install
  35.  
  36. echo.
  37. echo An error occurred during installation.  Please contact
  38. echo McAfee Associates Technical Support for assistance.
  39. goto end
  40.  
  41. :install
  42. call inst
  43. echo.
  44. echo              ***  ***  Installation Successful  ***  ***
  45. goto end
  46.  
  47. :error100
  48. echo.
  49. echo ***  WARNING  ***                 ***  OPERATING SYSTEM ERROR  ***
  50. echo ***  ERROR # 100
  51. echo.
  52. echo Operating system error; Scan adds 100 to the original error number.
  53. echo Please contact McAfee Associates Technical Support for assistance.
  54. pause
  55. goto end
  56.  
  57. :error19
  58. echo.
  59. echo ***  WARNING  ***                               ***  RESERVED  ***
  60. echo ***  ERROR # 19
  61. echo.
  62. echo Please contact McAfee Associates Technical Support for assistance.
  63. pause
  64. goto end
  65.  
  66. :error18
  67. echo.
  68. echo ***  WARNING  ***                             ***  FILE ERROR  ***
  69. echo ***  ERROR # 18
  70. echo.
  71. echo A validated file has been modified (/CF or /CV options).
  72. echo Please refer to your documentation or contact McAfee Associates
  73. echo Technical Support for assistance.
  74. pause
  75. goto end
  76.  
  77. :error17
  78. echo.
  79. echo ***  WARNING  ***                          ***  COMMAND ERROR  ***
  80. echo *** ERROR # 17
  81. echo.
  82. echo No drive, directory or file was specified; nothing to scan.
  83. echo Please refer to your documentation or contact McAfee Associates
  84. echo Technical Support for assistance.
  85. pause
  86. goto end
  87.  
  88. :error16
  89. echo.
  90. echo ***  WARNING  ***                           ***  ACCESS ERROR  ***
  91. echo ***  ERROR # 16
  92. echo.
  93. echo An error occurred while accessing a specified drive or file.
  94. echo Please refer to your documentation or contact McAfee Associates
  95. echo Technical Support for assistance.
  96. pause
  97. goto end
  98.  
  99. :error15
  100. echo.
  101. echo ***  WARNING  ***                      ***  SELF-CHECK FAILED  ***
  102. echo ***  ERROR # 15
  103. echo.
  104. echo VirusScan self-check failed.  It may be infected or damaged.
  105. echo Please refer to your documentation or contact McAfee Associates
  106. echo Technical Support for assistance.
  107. pause
  108. goto end
  109.  
  110. :error14
  111. echo.
  112. echo ***  WARNING  ***                        ***  DATA FILE ERROR  ***
  113. echo ***  ERROR # 14
  114. echo.
  115. echo The SCAN.DAT file is out of date; upgrade VirusScan data files.
  116. echo Please refer to your documentation or contact McAfee Associates
  117. echo Technical Support for assistance.
  118. pause
  119. goto end
  120.  
  121. :error13
  122. echo.
  123. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  124. echo ***  ERROR # 13
  125. echo.
  126. echo One or more viruses was found in the master boot record, boot
  127. echo sector, or file(s).
  128. echo Please refer to your documentation or contact McAfee Associates
  129. echo Technical Support for assistance.
  130. pause
  131. goto end
  132.  
  133. :error12
  134. echo.
  135. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  136. echo ***  ERROR # 12
  137. echo.
  138. echo An error occurred while attempting to remove a virus, such as no
  139. echo CLEAN.DAT file found, or VirusScan was unable to remove the virus.
  140. echo Please refer to your documentation or contact McAfee Associates
  141. echo Technical Support for assistance.
  142. pause
  143. goto end
  144.  
  145. :error11
  146. echo.
  147. echo ***  WARNING  ***                           *** PROGRAM ERROR  *** 
  148. echo *** ERROR # 11
  149. echo.
  150. echo An internal program communication error occurred.
  151. echo Please refer to your documentation or contact McAfee Associates
  152. echo Technical Support for assistance.
  153. pause
  154. goto end
  155.  
  156. :error10
  157. echo.
  158. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  159. echo ***  ERROR # 10
  160. echo.
  161. echo A virus was found in memory.  You must clean the virus from your
  162. echo system before installing.
  163. echo Please refer to your documentation or contact McAfee Associates
  164. echo Technical Support for assistance.
  165. pause
  166. goto end
  167.  
  168. :error9
  169. echo.
  170. echo ***  WARNING  ***                           ***  OPTION ERROR  ***                        
  171. echo ***  ERROR # 9
  172. echo.
  173. echo Incompatible or unrecognized option(s) or option arguments(s) were
  174. echo specified in the command line.
  175. echo Please refer to your documentation or contact McAfee Associates
  176. echo Technical Support for assistance.
  177. pause
  178. goto end
  179.  
  180. :error8
  181. echo.
  182. echo ***  WARNING  ***                     ***  MISSING FILE ERROR  ***
  183. echo ***  ERROR # 8
  184. echo.
  185. echo A file required to run VirusScan, such as SCAN.DAT, is missing.
  186. echo Please refer to your documentation or contact McAfee Associates
  187. echo Technical Support for assistance.
  188. pause
  189. goto end
  190.  
  191. :error7
  192. echo.
  193. echo ***  WARNING  ***                     ***  MESSAGE FILE ERROR  ***
  194. echo ***  ERROR # 7
  195. echo.
  196. echo An error occurred in accessing an internatinal message file 
  197. echo (MCAFEE.MSG).
  198. echo Please refer to your documentation or contact McAfee Associates
  199. echo Technical Support for assistance.
  200. pause
  201. goto end
  202.  
  203. :error6
  204. echo.
  205. echo ***  WARNING  ***                          ***  PROGRAM ERROR  ***
  206. echo *** ERROR # 6
  207. echo.
  208. echo An internal program system error occurred.
  209. echo Please refer to your documentation or contact McAfee Associates
  210. echo Technical Support for assistance.
  211. pause
  212. goto end
  213.  
  214. :error5
  215. echo.
  216. echo ***  WARNING  ***              ***  INSUFFICIENT MEMORY ERROR  ***
  217. echo ***  ERROR # 5
  218. echo.
  219. echo Insufficient memory to load program or complete operation.
  220. echo Please refer to your documentation or contact McAfee Associates
  221. echo Technical Support for assistance.
  222. pause
  223. goto end
  224.  
  225. :error4
  226. echo.
  227. echo ***  WARNING  ***                     ***  DAMAGED FILE ERROR  ***
  228. echo *** ERROR # 4
  229. echo.
  230. echo An error occurred while accessing the file created with the /AF
  231. echo option.  The file has been damaged.
  232. echo Please refer to your documentation or contact McAfee Associates
  233. echo Technical Support for assistance.
  234. pause
  235. goto end
  236.  
  237. :error3
  238. echo.
  239. echo ***  WARNING  ***                      ***  DISK ACCESS ERROR  ***
  240. echo *** ERROR # 3
  241. echo.
  242. echo An error occurred while accessing a disk (reading or writing).
  243. echo Please refer to your documentation or contact McAfee Associates
  244. echo Technical Support for assistance.
  245. pause
  246. goto end
  247.  
  248. :error2
  249. echo.
  250. echo ***  WARNING  ***                     ***  CORRUPT FILE ERROR  ***
  251. echo ***  ERROR # 2
  252. echo.
  253. echo A VirusScan database (*.DAT) file is corrupted.
  254. echo Please refer to your documentation or contact McAfee Associates
  255. echo Technical Support for assistance.
  256. pause
  257. goto end
  258.  
  259. :error1
  260. echo.
  261. echo ***  WARNING  ***                      ***  FILE ACCESS ERROR  ***
  262. echo ***  ERROR # 1
  263. echo.
  264. echo An error occurred while accessing a file (reading or writing).
  265. echo Please refer to your documentation or contact McAfee Associates
  266. echo Technical Support for assistance.
  267. pause
  268.  
  269. :end
  270.  
  271.